Playwright Service API (stable:2025-09-01)

2025/08/14 • 7 new methods

AccessTokens_List (new)
Description Lists access tokens for the specified workspace ID. Supports OData query parameters: $select, $filter, $orderby, $top, and $skip. Default page size is 10. Use nextLink in response to fetch additional results. Requires Bearer JWT access token provided by Entra ID.
Reference Link ¶

⚼ Request

GET:  /playwrightworkspaces/{workspaceId}/access-tokens
{
api-version: string ,
workspaceId: string ,
x-ms-client-request-id: string ,
}

⚐ Response (200)

{
$headers:
{
x-ms-client-request-id: string ,
}
,
$schema:
{
value:
[
{
id: string ,
name: string ,
jwtToken: string ,
createdAt: string ,
expiryAt: string ,
state: enum ,
}
,
]
,
nextLink: string ,
}
,
}

⚐ Response (default)

{
$headers:
{
x-ms-error-code: string ,
}
,
$schema:
{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
innererror:
{
code: string ,
innererror: string ,
}
,
}
,
}
,
}
AccessTokens_Get (new)
Description Gets an access token for the workspace with the specified access token ID. Requires Bearer JWT access token provided by Entra ID.
Reference Link ¶

⚼ Request

GET:  /playwrightworkspaces/{workspaceId}/access-tokens/{accessTokenId}
{
api-version: string ,
workspaceId: string ,
accessTokenId: string ,
x-ms-client-request-id: string ,
}

⚐ Response (200)

{
$headers:
{
x-ms-client-request-id: string ,
}
,
$schema:
{
id: string ,
name: string ,
jwtToken: string ,
createdAt: string ,
expiryAt: string ,
state: enum ,
}
,
}

⚐ Response (default)

{
$headers:
{
x-ms-error-code: string ,
}
,
$schema:
{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
innererror:
{
code: string ,
innererror: string ,
}
,
}
,
}
,
}
AccessTokens_CreateOrReplace (new)
Description Creates an access token for the workspace with the specified access token ID and name. The ID and name must be unique among active access tokens for the user within a Playwright workspace. Requires Bearer JWT access token provided by Entra ID.
Reference Link ¶

⚼ Request

PUT:  /playwrightworkspaces/{workspaceId}/access-tokens/{accessTokenId}
{
api-version: string ,
workspaceId: string ,
accessTokenId: string ,
x-ms-client-request-id: string ,
resource:
{
id: string ,
name: string ,
jwtToken: string ,
createdAt: string ,
expiryAt: string ,
state: enum ,
}
,
}

⚐ Response (200)

{
$headers:
{
x-ms-client-request-id: string ,
}
,
$schema:
{
id: string ,
name: string ,
jwtToken: string ,
createdAt: string ,
expiryAt: string ,
state: enum ,
}
,
}

⚐ Response (201)

{
$headers:
{
x-ms-client-request-id: string ,
}
,
$schema:
{
id: string ,
name: string ,
jwtToken: string ,
createdAt: string ,
expiryAt: string ,
state: enum ,
}
,
}

⚐ Response (default)

{
$headers:
{
x-ms-error-code: string ,
}
,
$schema:
{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
innererror:
{
code: string ,
innererror: string ,
}
,
}
,
}
,
}
AccessTokens_Delete (new)
Description Deletes an access token for the workspace with the specified access token ID. Requires Bearer JWT access token provided by Entra ID.
Reference Link ¶

⚼ Request

DELETE:  /playwrightworkspaces/{workspaceId}/access-tokens/{accessTokenId}
{
api-version: string ,
workspaceId: string ,
accessTokenId: string ,
x-ms-client-request-id: string ,
}

⚐ Response (204)

{
x-ms-client-request-id: string ,
}

⚐ Response (default)

{
$headers:
{
x-ms-error-code: string ,
}
,
$schema:
{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
innererror:
{
code: string ,
innererror: string ,
}
,
}
,
}
,
}
Workspaces_GetBrowsers (new)
Description Gets remote browsers for the specified workspace ID and redirects the client to execute Playwright scripts. Requires Bearer JWT access token provided by Entra ID or Playwright Service.
Reference Link ¶

⚼ Request

GET:  /playwrightworkspaces/{workspaceId}/browsers
{
api-version: string ,
workspaceId: string ,
os: string ,
runId: string ,
x-ms-client-request-id: string ,
}

⚐ Response (302)

{
location: string ,
x-ms-client-request-id: string ,
}

⚐ Response (default)

{
$headers:
{
x-ms-error-code: string ,
}
,
$schema:
{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
innererror:
{
code: string ,
innererror: string ,
}
,
}
,
}
,
}
TestRuns_List (new)
Description Lists test runs for the specified workspace ID. Supports OData query parameters such as $filter and $top. Default page size is 10. Use nextLink in response to fetch additional results. Requires Bearer JWT access token provided by Entra ID or Playwright Service.
Reference Link ¶

⚼ Request

GET:  /playwrightworkspaces/{workspaceId}/test-runs
{
api-version: string ,
workspaceId: string ,
x-ms-client-request-id: string ,
}

⚐ Response (200)

{
$headers:
{
x-ms-client-request-id: string ,
}
,
$schema:
{
value:
[
{
id: string ,
displayName: string ,
creatorId: string ,
creatorName: string ,
config:
{
framework:
{
name: string ,
version: string ,
runnerName: string ,
}
,
sdkLanguage: enum ,
maxWorkers: integer ,
}
,
ciConfig:
{
providerName: string ,
branch: string ,
author: string ,
commitId: string ,
revisionUrl: string ,
}
,
summary:
{
status: enum ,
billableTime: integer ,
numBrowserSessions: integer ,
maxConcurrentBrowserSessions: integer ,
startTime: string ,
endTime: string ,
duration: integer ,
errorMessages:
[
string ,
]
,
}
,
}
,
]
,
nextLink: string ,
}
,
}

⚐ Response (default)

{
$headers:
{
x-ms-error-code: string ,
}
,
$schema:
{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
innererror:
{
code: string ,
innererror: string ,
}
,
}
,
}
,
}
TestRuns_CreateOrUpdate (new)
Description Creates or updates a test run for the workspace with the specified test run ID. Requires Bearer JWT access token provided by Entra ID or Playwright Service.
Reference Link ¶

⚼ Request

PATCH:  /playwrightworkspaces/{workspaceId}/test-runs/{runId}
{
api-version: string ,
workspaceId: string ,
runId: string ,
x-ms-client-request-id: string ,
resource:
{
displayName: string ,
config:
{
framework:
{
name: string ,
version: string ,
runnerName: string ,
}
,
sdkLanguage: enum ,
maxWorkers: integer ,
}
,
ciConfig:
{
providerName: string ,
branch: string ,
author: string ,
commitId: string ,
revisionUrl: string ,
}
,
}
,
}

⚐ Response (200)

{
$headers:
{
x-ms-client-request-id: string ,
}
,
$schema:
{
id: string ,
displayName: string ,
creatorId: string ,
creatorName: string ,
config:
{
framework:
{
name: string ,
version: string ,
runnerName: string ,
}
,
sdkLanguage: enum ,
maxWorkers: integer ,
}
,
ciConfig:
{
providerName: string ,
branch: string ,
author: string ,
commitId: string ,
revisionUrl: string ,
}
,
summary:
{
status: enum ,
billableTime: integer ,
numBrowserSessions: integer ,
maxConcurrentBrowserSessions: integer ,
startTime: string ,
endTime: string ,
duration: integer ,
errorMessages:
[
string ,
]
,
}
,
}
,
}

⚐ Response (201)

{
$headers:
{
x-ms-client-request-id: string ,
}
,
$schema:
{
id: string ,
displayName: string ,
creatorId: string ,
creatorName: string ,
config:
{
framework:
{
name: string ,
version: string ,
runnerName: string ,
}
,
sdkLanguage: enum ,
maxWorkers: integer ,
}
,
ciConfig:
{
providerName: string ,
branch: string ,
author: string ,
commitId: string ,
revisionUrl: string ,
}
,
summary:
{
status: enum ,
billableTime: integer ,
numBrowserSessions: integer ,
maxConcurrentBrowserSessions: integer ,
startTime: string ,
endTime: string ,
duration: integer ,
errorMessages:
[
string ,
]
,
}
,
}
,
}

⚐ Response (default)

{
$headers:
{
x-ms-error-code: string ,
}
,
$schema:
{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
innererror:
{
code: string ,
innererror: string ,
}
,
}
,
}
,
}